import { lazy } from "react";

let Routerlist=[
    {
        path:"/all",
        component:lazy(()=>import("../view/all")),
        children:[
            {
                path:"/all/home",
                component:lazy(()=>import("../view/all/home"))
            },
            {
                path:"/all/classfil",
                component:lazy(()=>import("../view/all/classfil"))
            },
            {
                from:"/all",
                to:"/all/home" 
            }
        ]
    },
    {
        path:"/login",
        component:lazy(()=>import("../view/login"))
    },
    {
        from:"/",
        to:"/all"
    }
]

export default Routerlist;
